This error may occur when you use RMAN to restore SPFILE from AUTOBACKUP. Here is a brief summary. When RMAN recovers SPFILE, the following error may occur: RM
This error may occur when you use RMAN to restore SPFILE from AUTOBACKUP. Here is a brief summary. When RMAN recovers SPFILE, the following error may occur: RM
This error may occur when you use RMAN to restore SPFILE from
This error may occur when you use RMAN to restore SPFILE from AUTOBACKUP. Here is a brief summary.
When RMAN recovers SPFILE, the following error may occur:
RMAN> restore spfile from autobackup;
Start the restore on March 10-11Use channel ORA_DISK_1
Channel ORA_DISK_1: Find AUTOBACKUP for the following date: 20111007Channel ORA_DISK_1: Find
17. You configure autobackup to on an RMAN session. When will RMAN back up the control file?(Choose all that apply .)
A. When you run an RMAN backup command
B. When you run an RMAN allocate command
C. When you add or drop a table in the system tablespace
D. When you change the physical structure of the database, such as dropping a tablespace
E. When you specify the including controlfile clause
Original answer: A is obviously incorrect!
Correct answe
Problem Description:
Restore SPFile always reports Rman-06172:no autobackup found or specified handle is not a valid copy or piece when the database is restored to the same machine through Rman
rman> restore SPFile from '/tmp/bak/db_14_1_928703445 ';
Starting restore at 24-nov-16
using target database control file instead of recovery catalog allocated Channel:or
A_disk_1
Channel ora_disk_1:sid=18 device Type=disk RMAN-00571
: =====================
RMAN backup and recovery-parameter file Restoration
In RMAN, "restoration" and "restoration" have different meanings. "restoration" refers to accessing the previously generated backup set to obtain one or more objects, then restore these objects at a location on the disk. Detached from restoration. Recovery is an actual operation that allows a database to be opened at a given time point.
If all parameter files (spfile and pfile) are lost and automatic backup of control files is enabled (RMAN> co
Oracle
Oracle9i new features: the use of SPFile
--how to backup and restore SPFile and controlfile using autobackup option
Last Updated:wednesday, 2004-10-27 0:40 eygle
This article is published in the Itpub Technology series "Oracle Database DBA Special Technology Essence", without permission, is prohibited reproduced this article.
Original source:
Http://www.eygle.com/faq/Oracle9i.New.Feature.Spfile.04.htm
Six. Backup and recovery of SPFi
In this lab, the spfile and pfile are recovered when the database is lost in both open and shutdown conditions.
Oracle @ aoracle dbs] $ rman target rman_user/rman_user;
Recovery Manager: Release 10.2.0.1.0-Production on Thu Dec 8 19:21:38 2011
Copyright (c) 1982,200 5, Oracle. All rights reserved.
Connected to target database: EZHOU (DBID = 4046377924, not open)
RMAN> restore spfile;
Starting restore at 08-DEC-11Using target database control file instead of recovery catalogAllocated channel: ORA
controlfile from autobackup;
Starting restore at 06--14 14Using target database control file instead of recovery catalogAllocated channel: ORA_DISK_1Channel ORA_DISK_1: SID = 19 device type = DISK
Recovery area destination:/u01/fast_recovery_areaDatabase name (or database unique name) used for search: PRACTICEChannel ORA_DISK_1: AUTOBACKUP/u01/fast_recovery_area/PRACTICE/
recovery complete, elapsed time:00:00:04Finished recover at 17-apr-14SQL Statement:alter database datafile 4 OnlineRman>Enter file $CD/U01/ORACLE/ORADATA/ORCL view found USER01.DBFOnce again, under Scott's user, seeSql> Select COUNT (*) from E22;COUNT (*)----------42Found the data recovered.Recovery succeeded.
Of course, if you have off-site backup, we can directly use offsite recovery to help us achieve, and here we have to look at
oracle10g Database Recovery (Offsite recovery)
Loss of all
1. Recover control files from automatic backup using Rman (without Fra)
ORACLE will default to create server parameter files and control files in the $oracle_home/dbs or $ORACLE _home/database directory.
Assuming that the instance parameter file has been restored and the instance is started, the general process of restoring the control file is to set up Oracle_sid and log on Rman first, and then set up dbid to let RMAN know which database control file to look for.
If you use the default locat
RMAN-06172 Troubleshooting, rman-06172
The error "RMAN-06172: no autobackup found or specified handle is not a valid copy or piece" was encountered during the RMAN restoration test today, as shown below:
RMAN> restore spfile to pfile "/u01/app/oracle/product/10.2.0/db_1/dbs/initSCM2.ora"
From "/u04/backup/backupsets/ora_cfc-4095319980-20180327-00 ";
Starting restore at 28-MAR-18
Using channel ORA_DISK_1
RMAN-00571: =======================
restore and restore
When starting a database recovery, we must first restore the server parameter file and then recover the control file.
Supplemental Knowledge: First review the knowledge of control files and SPFile backups:
When we modify the automatic backup, the control files and initialization pfile are automatically backed up after each backup.
Rman> Show All;
CONFIGURE Controlfile autobackup on; --This parameter is closed by default
rman
Control filesRMAN> RESTOREControlfile fromAutobackup;--The control file is restored to the initialization parameter: Control_files the specified path. StartRestoreIn +-December- -Use the target database control file instead of the channel for recovering directory allocations: Ora_disk_1 Channel Ora_disk_1:sid=TenDevice type=DISKRecovery Zone target: D:\app\Administrator\flash_recovery_area the database name (or unique name of the database) used for the search: ORCL Channel ora_disk_1: Find
)Rman> Configure Controlfile autobackup on; (Open automatic backup of control file and server parameter file)Rman> Configure Controlfile autobackup format for device type disk to '/backup1/ctl_%f '; (Set file format for automatic backup of control files and server parameters files)4. View all settings:Rman> Show All5. View the database Schema report:Rman> Report schema;6. Back up the whole library:Rman> BAC
: off and on TO enable configure default device type to disk; # default note: the DEFAULT backup DEVICE can be sbt (TAPE), DISK (hard DISK ); the default value is hard disk configure controlfile autobackup off; # default www.2cto.com. Note: whether to back up the control file together during backup. The default value is off and no backup, it can also be an on backup ,. Configure controlfile autobackupformat for device type disk to '% F'; # default Not
to see if it starts successfullyThe following are displayed after successful startupsql> archive log list;Database Log Mode Archive modeAutomatic Archival EnabledArchive Destination Use_db_recovery_file_destOldest online log sequence 25Next Log sequence to archive 27Current log Sequence 272 Modifying Rman parametersLanding RmanRman Target Rman/rmanConfiguration in Oracle 9iUse Rman>show all;The Rman configuration parameters can be displayed as follows:
CONFIGURE RETENTION POLICY to redundancy 1
Recover 1.1. Loss of SPFile Recovery
Prerequisite: Automatic backup of database control files has been configured and reliable backups have been made:
Rman> CONFIGURE controlfile autobackup on;
New RMAN configuration parameters:
CONFIGURE Controlfile autobackup on;
A new RMAN configuration parameter was successfully stored
Starting resync for full recovery directory
Complete all Resync
Rman>
r
autobackup off; # defaultConfigure controlfile autobackup format for device type disk to '% F'; # defaultConfigure device type disk parallelism 1 Backup Type to backupset; # defaultConfigure datafile backup copies for device type disk to 1; # defaultConfigure archivelog backup copies for device type disk to 1; # defaultConfigure maxsetsize to unlimited; # defaultConfigure encryption for database off; # def
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.